package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pojo.ForumTopic;
import com.example.pojo.PageBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author testjava
 * @since 2022-08-20
 */
public interface ForumTopicService extends IService<ForumTopic> {
    List<ForumTopic> getForumTopicsByFid(Integer fid);

    List<ForumTopic> getForumTopics(Integer tid);

    PageBean<ForumTopic> getByPage(Integer currentPage, Integer pageSize, Integer fid);

    boolean saveTopic(ForumTopic forumTopic, Integer forumId, Integer topicCount, Integer articleCount);
}
